require("common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/personnel/personnel_center" ], {
    "0177": function(e, t, n) {
        "use strict";
        n.r(t);
        var o = n("f719"), s = n("dca9");
        for (var i in s) "default" !== i && function(e) {
            n.d(t, e, function() {
                return s[e];
            });
        }(i);
        n("1e29");
        var a = n("f0c5"), c = Object(a.a)(s.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = c.exports;
    },
    1197: function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("0177")).default);
        }).call(this, n("543d").createPage);
    },
    1816: function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0, function(e) {
                e && e.__esModule;
            }(n("bf05"));
            var o = n("9e42"), s = n("b00d"), i = {
                data: function() {
                    return {
                        graceFullLoading: !0,
                        bottomColor: "",
                        pwd: "",
                        status: 1,
                        istel: 0,
                        isedittel: 2,
                        wxname: "",
                        applStatus: 0,
                        isRush: 2,
                        personnelname: "",
                        teckname: "",
                        personnelmoile: "",
                        catename: [],
                        notice: 0,
                        lnglat: "",
                        address: "",
                        tmplIds: [],
                        commissionStatus: 0,
                        commission: 0,
                        cash: 0,
                        minimum: 1,
                        balance: 0,
                        show1: !1,
                        wxurlper: "",
                        wxurlperALL: "",
                        showHead: 1,
                        perStar: 0,
                        showBack: !1,
                        tag: "",
                        showImgs: [],
                        uploadImgs: [],
                        uploadServerUrl: "",
                        tags: [],
                        selectTag: [],
                        remarks: "",
                        editremarks: "",
                        showEditremarks: !1,
                        perid: 0,
                        shareimg: "",
                        qrcode: "",
                        show3: !1,
                        isteck: 2,
                        zmjz: 0,
                        showname: "",
                        showcate: "",
                        casename: "",
                        tagname: "",
                        editcate: 1,
                        applyCategorysChild: {},
                        applyCategorys: [],
                        cateType: 0,
                        categorysVal: [],
                        tagnums: 3,
                        headimg: "",
                        editname: "",
                        editHeadimg: 1,
                        editNick: 1,
                        showother: 2,
                        othermobile: "",
                        othername: "",
                        orderCount: [],
                        locationType: 0
                    };
                },
                onLoad: function() {
                    var e = s.d;
                    "wx5a67ffb91ef175cb" == e || "wxcaad2fca5f5aeba1" == e ? (this.showname = "昵称", 
                    this.showcate = "可提供的服务", this.tagname = "个人标签", this.editcate = 2, this.tagnums = 9999, 
                    this.editHeadimg = 2, this.editNick = 2) : (this.showname = "真实姓名", this.showcate = "服务行业", 
                    this.tagname = "服务标签", this.editcate = 1, this.tagnums = 3, this.editHeadimg = 1, 
                    this.editNick = 1), "wx2285aa24a7029f46" != e && "wxcaad2fca5f5aeba1" != e || (this.showother = 1);
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, wx.hideShareMenu({
                        withShareTicket: !1,
                        menus: [ "shareAppMessage", "shareTimeline" ]
                    }), this.uploadServerUrl = this.$xRequest.url("entry/wxapp/v4uploadimg"), this.getInfo(1);
                },
                onShow: function() {
                    var t = e.getStorageSync("onshowPersonnel"), n = e.getStorageSync("onshowHeadimg");
                    1 == t ? this.getInfo(1) : 1 == n && this.getInfo();
                },
                onShareAppMessage: function(e) {
                    return {
                        title: this.personnelname + "为您服务，打开小程序预约我吧！",
                        path: "/xg_o2o/item/itempersonnel?perid=" + this.perid,
                        imageUrl: this.shareimg
                    };
                },
                methods: {
                    locationTypeChange: function(t) {
                        var n = this;
                        e.showLoading({
                            title: "提交中",
                            mask: !0
                        }), this.locationType = t.detail.value;
                        var o = this.$xSign.sign("v4personnel_getinfo");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4personnel_getinfo",
                            data: {
                                xgsign: o,
                                op: "locationtype",
                                locationtype: this.locationType
                            },
                            success: function(t) {
                                e.setStorageSync("locationtype", n.locationType), e.hideLoading(), n.updateLbs();
                            },
                            fail: function(t) {
                                e.hideLoading(), n.locationType, n.locationType, e.showToast({
                                    title: "修改失败",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    updateLbs: function() {
                        1 == this.locationType ? this.uploadLBS() : 2 == this.locationType && this.chooseLocation();
                    },
                    chooseLocation: function() {
                        var t = this;
                        e.getSetting({
                            success: function(n) {
                                0 == n.authSetting["scope.userLocation"] ? e.openSetting({
                                    success: function(n) {
                                        1 == n.authSetting["scope.userLocation"] ? (console.log("重新地址授权"), e.chooseLocation({
                                            success: function(n) {
                                                var o = n.name, s = n.longitude + "," + n.latitude;
                                                e.setStorageSync("perlocation", s);
                                                var i = t.$xSign.sign("v4personnel_center");
                                                t.$xRequest.request({
                                                    url: "entry/wxapp/v4personnel_center",
                                                    data: {
                                                        xgsign: i,
                                                        action: "info",
                                                        lnglat: s,
                                                        address: o
                                                    },
                                                    success: function(n) {
                                                        e.hideLoading(), t.getInfo();
                                                    },
                                                    fail: function(t) {
                                                        e.hideLoading(), e.showToast({
                                                            title: "获取失败,请重试",
                                                            icon: "none"
                                                        });
                                                    }
                                                });
                                            },
                                            fail: function() {
                                                e.hideLoading(), e.showToast({
                                                    title: "获取失败,请重试",
                                                    icon: "none"
                                                });
                                            }
                                        })) : e.showModal({
                                            title: "提示",
                                            content: "请允许使用位置权限",
                                            success: function(e) {
                                                e.confirm ? t.chooseLocation() : e.cancel && console.log("用户点击取消");
                                            }
                                        });
                                    }
                                }) : e.chooseLocation({
                                    success: function(n) {
                                        var o = n.name, s = n.longitude + "," + n.latitude;
                                        e.setStorageSync("perlocation", s);
                                        var i = t.$xSign.sign("v4personnel_center");
                                        t.$xRequest.request({
                                            url: "entry/wxapp/v4personnel_center",
                                            data: {
                                                xgsign: i,
                                                action: "info",
                                                lnglat: s,
                                                address: o
                                            },
                                            success: function(n) {
                                                e.hideLoading(), t.getInfo();
                                            },
                                            fail: function(t) {
                                                e.hideLoading(), e.showToast({
                                                    title: "获取失败,请重试",
                                                    icon: "none"
                                                });
                                            }
                                        });
                                    },
                                    fail: function() {
                                        e.hideLoading(), e.showToast({
                                            title: "获取失败,请重试",
                                            icon: "none"
                                        });
                                    }
                                });
                            }
                        });
                    },
                    showHeadimg: function() {
                        2 == this.editHeadimg && e.navigateTo({
                            url: "personnel_edithead?perid=" + this.perid
                        });
                    },
                    showCate: function() {
                        this.$refs.selectCate.open();
                    },
                    closeCate: function() {
                        this.$refs.selectCate.hide();
                    },
                    tapInfo: function(e) {
                        -1 == this.categorysVal.indexOf(e) ? this.categorysVal.push(e) : this.categorysVal.splice(this.categorysVal.indexOf(e), 1);
                    },
                    confirmCate: function() {
                        var t = this, n = this.categorysVal.join(",");
                        if (this.categorysVal.length > 0) {
                            this.closeCate(), e.showLoading({
                                title: "提交中",
                                mask: !0
                            });
                            var o = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "updatecate",
                                    xgsign: o,
                                    categorys: n,
                                    catetype: this.cateType
                                },
                                success: function(e) {},
                                fail: function(e) {},
                                complete: function(n) {
                                    e.hideLoading(), e.showModal({
                                        title: "温馨提示",
                                        content: n.data.message,
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && t.getInfo();
                                        }
                                    });
                                }
                            });
                        } else e.showToast({
                            title: "您没有选择" + this.showcate,
                            icon: "none"
                        });
                    },
                    toEditsmjz: function() {
                        e.navigateTo({
                            url: "../editsmjz/editsmjz"
                        });
                    },
                    showDialog3: function() {
                        this.show3 = !0;
                    },
                    closeDialog3: function() {
                        this.show3 = !1;
                    },
                    drawBGIMG: function(t, n) {
                        var o = this;
                        e.downloadFile({
                            url: t,
                            success: function(t) {
                                200 == t.statusCode && e.getImageInfo({
                                    src: t.tempFilePath,
                                    success: function(e) {
                                        var s = o.widthIn / e.width * e.height;
                                        o.context.drawImage(t.tempFilePath, 0, 0, o.widthIn, s), n();
                                    }
                                });
                            }
                        });
                    },
                    saveQrcode: function(t) {
                        var n = this, o = t.substring(0, 8);
                        e.getSetting({
                            success: function(s) {
                                if (0 == s.authSetting["scope.writePhotosAlbum"]) e.openSetting({
                                    success: function(s) {
                                        if (1 == s.authSetting["scope.writePhotosAlbum"]) {
                                            if (console.log("重新授权"), e.showLoading({
                                                title: "保存中",
                                                mask: !0
                                            }), "https://" != o) return void e.saveImageToPhotosAlbum({
                                                filePath: t,
                                                success: function() {
                                                    e.hideLoading(), e.showToast({
                                                        title: "保存成功",
                                                        icon: "none"
                                                    }), n.show4 = !1;
                                                },
                                                fail: function(t) {
                                                    console.log(t), e.hideLoading(), e.showToast({
                                                        title: "保存失败，请稍后重试",
                                                        icon: "none"
                                                    });
                                                }
                                            });
                                            e.downloadFile({
                                                url: t,
                                                success: function(t) {
                                                    200 === t.statusCode && e.saveImageToPhotosAlbum({
                                                        filePath: t.tempFilePath,
                                                        success: function() {
                                                            e.hideLoading(), e.showToast({
                                                                title: "保存成功",
                                                                icon: "none"
                                                            });
                                                        },
                                                        fail: function() {
                                                            e.hideLoading(), e.showToast({
                                                                title: "保存失败，请稍后重试",
                                                                icon: "none"
                                                            });
                                                        }
                                                    });
                                                }
                                            });
                                        }
                                    }
                                }); else {
                                    if (e.showLoading({
                                        title: "保存中",
                                        mask: !0
                                    }), "https://" != o) return void e.saveImageToPhotosAlbum({
                                        filePath: t,
                                        success: function() {
                                            e.hideLoading(), e.showToast({
                                                title: "保存成功",
                                                icon: "none"
                                            }), n.show4 = !1;
                                        },
                                        fail: function(t) {
                                            console.log(t), e.hideLoading(), e.showToast({
                                                title: "保存失败，请稍后重试",
                                                icon: "none"
                                            });
                                        }
                                    });
                                    e.downloadFile({
                                        url: t,
                                        success: function(t) {
                                            200 === t.statusCode && e.saveImageToPhotosAlbum({
                                                filePath: t.tempFilePath,
                                                success: function() {
                                                    e.hideLoading(), e.showToast({
                                                        title: "保存成功",
                                                        icon: "none"
                                                    });
                                                },
                                                fail: function() {
                                                    e.hideLoading(), e.showToast({
                                                        title: "保存失败，请稍后重试",
                                                        icon: "none"
                                                    });
                                                }
                                            });
                                        }
                                    });
                                }
                            }
                        });
                    },
                    getQrcode: function(t) {
                        var n = this, o = this.$xSign.sign("v4personnelset");
                        1 == t && e.showLoading({
                            title: "获取中"
                        }), this.$xRequest.request({
                            url: "entry/wxapp/v4personnelset",
                            data: {
                                op: "qrcode",
                                xgsign: o
                            },
                            success: function(e) {
                                var o = JSON.parse(n.$Decrypt(e.data.data));
                                n.qrcode = o.img, 1 == t && n.showDialog3();
                            },
                            fail: function(t) {
                                e.showModal({
                                    title: "提示",
                                    content: t.data.message,
                                    showCancel: !1,
                                    success: function(e) {
                                        e.confirm && console.log("确认");
                                    }
                                });
                            },
                            complete: function() {
                                1 == t && e.hideLoading();
                            }
                        });
                    },
                    getNotice: function() {
                        this.tmplIds.length > 0 ? wx.requestSubscribeMessage({
                            tmplIds: this.tmplIds,
                            complete: function(e) {}
                        }) : e.showToast({
                            title: "管理员还未添加通知管理",
                            icon: "none"
                        });
                    },
                    toSetting: function() {
                        var t = this;
                        e.openSetting({
                            success: function(n) {
                                1 == n.authSetting["scope.userLocation"] ? (console.log("重新地址授权"), t.getaddress()) : e.showToast({
                                    title: "打开失败,请重新点击",
                                    icon: "none"
                                });
                            },
                            fail: function(e) {
                                console.log(e);
                            }
                        });
                    },
                    showNickname: function() {
                        2 == this.editNick && this.$refs.editrNickname.open();
                    },
                    closeNickname: function() {
                        this.$refs.editrNickname.hide();
                    },
                    confirmNickname: function() {
                        var t = this;
                        if (this.editname && /^[\u0391-\uFFE5]+$/.test(this.editname)) {
                            this.closeNickname(), e.showLoading({
                                title: "提交中",
                                mask: !0
                            });
                            var n = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "updatenick",
                                    xgsign: n,
                                    nick: this.editname
                                },
                                success: function(e) {},
                                fail: function(e) {},
                                complete: function(n) {
                                    e.hideLoading(), e.showModal({
                                        title: "温馨提示",
                                        content: n.data.message,
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && t.getInfo();
                                        }
                                    });
                                }
                            });
                        } else e.showToast({
                            title: "仅支持汉字",
                            icon: "none"
                        });
                    },
                    showRemark: function() {
                        this.showEditremarks = !0, this.$refs.editremarks.open();
                    },
                    closeRemark: function() {
                        this.showEditremarks = !1, this.$refs.editremarks.hide();
                    },
                    confirmRemark: function() {
                        var t = this;
                        if (this.editremarks) {
                            this.closeRemark(), e.showLoading({
                                title: "提交中",
                                mask: !0
                            });
                            var n = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "updateremarks",
                                    xgsign: n,
                                    remarks: this.editremarks
                                },
                                success: function(n) {
                                    var o = JSON.parse(t.$Decrypt(n.data.data));
                                    -1 != o.info ? 0 == n.data.errno && 1 == o.info && e.showModal({
                                        title: "温馨提示",
                                        content: "提交成功",
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && t.getInfo();
                                        }
                                    }) : e.showModal({
                                        title: "温馨提示",
                                        content: n.data.message,
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm;
                                        }
                                    });
                                },
                                complete: function() {
                                    e.hideLoading();
                                }
                            });
                        } else e.showToast({
                            title: "介绍不能为空",
                            icon: "none"
                        });
                    },
                    showTag: function() {
                        this.$refs.selecttag.open();
                    },
                    closeTag: function() {
                        this.$refs.selecttag.hide();
                    },
                    changeTag: function(t) {
                        t.length > this.tagnums ? e.showToast({
                            title: "最多选择" + this.tagnums + "个标签,请取消多余的标签",
                            icon: "none"
                        }) : this.selectTag = t;
                    },
                    confirmTag: function() {
                        var t = this, n = "";
                        if (this.selectTag.length > 0) {
                            for (var o = 0; o < this.selectTag.length; o++) n += this.tags[this.selectTag[o]].name + ",";
                            n = n.slice(0, n.length - 1), this.closeTag(), e.showLoading({
                                title: "提交中",
                                mask: !0
                            });
                            var s = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "updatetag",
                                    xgsign: s,
                                    tag: n
                                },
                                success: function(n) {
                                    var o = JSON.parse(t.$Decrypt(n.data.data));
                                    -1 != o.info ? 0 == n.data.errno && 1 == o.info && e.showModal({
                                        title: "温馨提示",
                                        content: "提交成功",
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && t.getInfo();
                                        }
                                    }) : e.showModal({
                                        title: "温馨提示",
                                        content: n.data.message,
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm;
                                        }
                                    });
                                },
                                complete: function() {
                                    e.hideLoading();
                                }
                            });
                        } else e.showToast({
                            title: "您没有选择标签",
                            icon: "none"
                        });
                    },
                    showUpload: function() {
                        this.$refs.uploadimg.open();
                    },
                    closeUpload: function() {
                        this.$refs.uploadimg.hide();
                    },
                    imgsChange: function(e) {
                        this.uploadImgs = "", this.selectedimgs = e;
                    },
                    imgLoaded: function(e) {
                        var t = new Array();
                        if (e.length > 0) {
                            for (var n = 0; n < e.length; n++) t[n] = e[n].url;
                            var o = t.join(",");
                            console.log("提交中"), this.confirmImg(o);
                        } else this.confirmImg("");
                    },
                    uploaderror: function() {
                        console.log("上传过程遇到错误");
                    },
                    confirmUpload: function() {
                        if ("" == this.uploadImgs) {
                            if (this.selectedimgs.length < 1) return void e.showToast({
                                title: "请上传至少1张照片",
                                icon: "none"
                            });
                            this.$refs.selectimgandupload.upload();
                        } else this.confirmImg(this.uploadImgs);
                    },
                    confirmImg: function(t) {
                        var n = this;
                        if (t) {
                            this.closeUpload();
                            var o = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "upload",
                                    xgsign: o,
                                    img: t
                                },
                                success: function(t) {
                                    var o = JSON.parse(n.$Decrypt(t.data.data));
                                    -1 != o.info ? 0 == t.data.errno && 1 == o.info && e.showModal({
                                        title: "温馨提示",
                                        content: "提交成功",
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && n.getInfo();
                                        }
                                    }) : e.showModal({
                                        title: "温馨提示",
                                        content: t.data.message,
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm;
                                        }
                                    });
                                }
                            });
                        } else e.showToast({
                            title: "请选择图片",
                            icon: "none"
                        });
                    },
                    showImgsPic: function(t) {
                        e.previewImage({
                            urls: t
                        });
                    },
                    toPic: function() {
                        e.navigateTo({
                            url: "personnel_tag",
                            success: function(e) {},
                            fail: function() {},
                            complete: function() {}
                        });
                    },
                    uploadLBS: function() {
                        var t = this;
                        e.getSetting({
                            success: function(e) {
                                e.authSetting["scope.userLocation"] ? 0 == e.authSetting["scope.userLocation"] ? t.$refs.ShowAddress.open() : t.getaddress() : wx.authorize({
                                    scope: "scope.userLocation",
                                    success: function() {
                                        t.getaddress();
                                    },
                                    fail: function() {
                                        t.$refs.ShowAddress.open();
                                    }
                                });
                            },
                            fail: function(e) {}
                        });
                    },
                    getaddress: function() {
                        var t = this;
                        this.$refs.ShowAddress.hide(), e.showLoading({
                            title: "正在更新位置",
                            mask: !0
                        }), new o.AMapWX({
                            key: this.$m
                        }).getRegeo({
                            success: function(n) {
                                var o = n[0].desc, s = n[0].longitude + "," + n[0].latitude;
                                e.setStorageSync("perlocation", s);
                                var i = t.$xSign.sign("v4personnel_center");
                                t.$xRequest.request({
                                    url: "entry/wxapp/v4personnel_center",
                                    data: {
                                        xgsign: i,
                                        action: "info",
                                        lnglat: s,
                                        address: o
                                    },
                                    success: function(n) {
                                        var o = Date.now();
                                        e.setStorageSync("peruploadtime", o), e.hideLoading(), t.getInfo();
                                    },
                                    fail: function(t) {
                                        e.hideLoading(), e.showToast({
                                            title: "获取失败,请重试",
                                            icon: "none"
                                        });
                                    }
                                });
                            },
                            fail: function(t) {
                                "getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF" == t.errMsg ? (e.hideLoading(), 
                                e.showToast({
                                    title: "请打开手机位置信息(GPS)",
                                    icon: "none"
                                })) : (e.hideLoading(), e.showToast({
                                    title: "获取失败，请联系管理员!",
                                    icon: "none"
                                }));
                            }
                        });
                    },
                    getInfo: function(t) {
                        var n = this;
                        this.graceFullLoading = !0;
                        var o = this.$xSign.sign("v4personnel_center");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4personnel_center",
                            data: {
                                xgsign: o
                            },
                            success: function(t) {
                                var o = JSON.parse(n.$Decrypt(t.data.data));
                                if (n.bottomColor = o.color, 0 == t.data.errno) {
                                    if (n.applStatus = o.info, -1 == o.info) return void e.showModal({
                                        title: "温馨提示",
                                        content: t.data.message,
                                        showCancel: !1,
                                        success: function(n) {
                                            n.confirm && ("请重新填写申请资料!" == t.data.message ? e.reLaunch({
                                                url: "../editsmjz/editsmjz"
                                            }) : e.reLaunch({
                                                url: "../center/center"
                                            }));
                                        }
                                    });
                                    if (0 == o.notice && o.wxurlper) return e.showToast({
                                        title: "即将跳转通知绑定页面",
                                        icon: "none",
                                        duration: 1e4
                                    }), e.navigateTo({
                                        url: "personnel_web?url=" + encodeURIComponent(o.wxurlper + "&pe=" + o.personnelmoile + "&pd=" + o.psw + "#wechat_redirect")
                                    }), !1;
                                    if (n.graceFullLoading = !1, e.removeStorageSync("onshowPersonnel"), e.removeStorageSync("onshowHeadimg"), 
                                    n.headimg = o.headimg, n.teckname = o.teckname, n.zmjz = o.zmjz, n.tag = o.tag, 
                                    n.showHead = o.showhead, n.perStar = o.star, n.pwd = o.psw, n.wxname = o.name, n.status = o.status, 
                                    n.istel = o.istel, n.isedittel = o.isedittel, n.isRush = o.isrush, n.personnelname = o.personnelname, 
                                    n.personnelmoile = o.personnelmoile, n.catename = o.catename, n.casename = o.casename, 
                                    n.notice = o.notice, n.lnglat = o.lnglat, n.address = o.address, n.tmplIds = o.tmplIds, 
                                    n.showImgs = o.showimgs, n.tags = o.tags, n.perid = o.perid, n.shareimg = o.shareimg, 
                                    n.isteck = o.isteck, n.applyCategorysChild = o.childCate, n.cateType = o.catetype, 
                                    n.applyCategorys = o.categorysdy, n.categorysVal = o.selectcate, n.editname = o.personnelname, 
                                    n.othername = o.othername, n.othermobile = o.othermobile, o.uploadimgs) {
                                        n.uploadImgs = o.uploadimgs;
                                        var s = o.uploadimgs.split(",");
                                        setTimeout(function() {
                                            n.$refs.selectimgandupload.setItems(s);
                                        }, 300);
                                    }
                                    n.remarks = o.remarks, n.editremarks = o.remarks, n.commissionStatus = o.commissionStatus, 
                                    n.commission = Number(o.commission), n.cash = Number(o.balance), n.balance = Number(o.balance), 
                                    n.minimum = Number(o.minimum), n.wxurlper = o.wxurlper, n.wxurlperALL = o.wxurlper + "&pe=" + o.personnelmoile + "&pd=" + o.psw + "#wechat_redirect", 
                                    n.orderCount = o.ordercount, n.locationType = o.locationtype;
                                    var i = Date.now(), a = e.getStorageSync("peruploadtime");
                                    e.setStorageSync("locationtype", n.locationType), 1 != n.locationType || n.address && a && !(i > a + 18e4) || n.uploadLBS();
                                }
                            }
                        });
                    },
                    changeStatus: function() {
                        var t = this;
                        e.showModal({
                            title: "提示",
                            content: "确定切换工作状态吗？",
                            success: function(e) {
                                if (e.confirm) {
                                    var n = t.$xSign.sign("v4personnel_center");
                                    t.$xRequest.request({
                                        url: "entry/wxapp/v4personnel_center",
                                        data: {
                                            xgsign: n,
                                            action: "change",
                                            workstatus: t.status
                                        },
                                        success: function(e) {
                                            t.getInfo();
                                        }
                                    });
                                } else e.cancel && console.log("用户点击取消！");
                            }
                        });
                    },
                    telStatus: function() {
                        var t = this;
                        e.showModal({
                            title: "提示",
                            content: "确定切换电话通知状态吗？",
                            success: function(e) {
                                if (e.confirm) {
                                    var n = t.$xSign.sign("v4personnel_center");
                                    t.$xRequest.request({
                                        url: "entry/wxapp/v4personnel_center",
                                        data: {
                                            xgsign: n,
                                            action: "telchange",
                                            workstatus: t.istel
                                        },
                                        success: function(e) {
                                            t.getInfo();
                                        }
                                    });
                                } else e.cancel && console.log("用户点击取消！");
                            }
                        });
                    },
                    changeNotice: function() {
                        var t = this;
                        e.showModal({
                            title: "提示",
                            content: "取消订阅后需重新绑定授权码",
                            success: function(e) {
                                if (e.confirm) {
                                    var n = t.$xSign.sign("v4personnel_center");
                                    t.$xRequest.request({
                                        url: "entry/wxapp/v4personnel_center",
                                        data: {
                                            xgsign: n,
                                            action: "notice"
                                        },
                                        success: function(e) {
                                            t.getInfo();
                                        }
                                    });
                                } else e.cancel && console.log("用户点击取消");
                            }
                        });
                    },
                    copyPwd: function() {
                        e.setClipboardData({
                            data: this.pwd,
                            success: function() {
                                console.log("success");
                            }
                        });
                    },
                    orderlist: function() {
                        e.navigateTo({
                            url: "./personnel_orderlist"
                        });
                    },
                    cashlist: function() {
                        e.navigateTo({
                            url: "./personnel_cashlist"
                        });
                    },
                    showDialog: function() {
                        this.show1 = !0;
                    },
                    closeDialog: function() {
                        this.show1 = !1, this.cash = this.balance;
                    },
                    clearInput: function() {
                        this.cash = "";
                    },
                    confirm: function() {
                        var t = this;
                        if (!/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(this.cash)) return e.showToast({
                            title: "价格格式错误",
                            icon: "none"
                        }), !1;
                        if (Number(this.cash) < Number(this.minimum)) return e.showToast({
                            title: "最低提现" + this.minimum + "元",
                            icon: "none"
                        }), !1;
                        if (Number(this.cash) > Number(this.balance)) return e.showToast({
                            title: "余额不足",
                            icon: "none"
                        }), !1;
                        var n = this.$xSign.sign("v4personnelset");
                        this.show1 = !1, e.showLoading({
                            title: "提交中"
                        }), this.$xRequest.request({
                            url: "entry/wxapp/v4personnelset",
                            data: {
                                op: "apply",
                                cash: this.cash,
                                xgsign: n
                            },
                            success: function(n) {
                                e.hideLoading(), e.showModal({
                                    title: "提示",
                                    content: n.data.message,
                                    showCancel: !1,
                                    complete: function(n) {
                                        n.confirm && (t.tmplIds.length > 0 ? wx.requestSubscribeMessage({
                                            tmplIds: t.tmplIds,
                                            complete: function(t) {
                                                e.reLaunch({
                                                    url: "./personnel_center"
                                                });
                                            }
                                        }) : e.reLaunch({
                                            url: "./personnel_center"
                                        }));
                                    }
                                });
                            },
                            fail: function(t) {
                                e.hideLoading(), e.showModal({
                                    title: "提示",
                                    content: t.data.message,
                                    showCancel: !1,
                                    complete: function(t) {
                                        e.redirectTo({
                                            url: "./personnel_center"
                                        });
                                    }
                                });
                            }
                        });
                    },
                    cashAction: function() {
                        this.balance < this.minimum ? e.showModal({
                            title: "提示",
                            content: "最低提现" + this.minimum + "元",
                            showCancel: !1,
                            confirmText: "我知道了",
                            success: function(e) {
                                e.confirm ? console.log("用户点击确定") : e.cancel && console.log("用户点击取消");
                            }
                        }) : this.show1 = !0;
                    }
                }
            };
            t.default = i;
        }).call(this, n("543d").default);
    },
    "1e29": function(e, t, n) {
        "use strict";
        var o = n("482c");
        n.n(o).a;
    },
    "482c": function(e, t, n) {},
    dca9: function(e, t, n) {
        "use strict";
        n.r(t);
        var o = n("1816"), s = n.n(o);
        for (var i in o) "default" !== i && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        t.default = s.a;
    },
    f719: function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return s;
        }), n.d(t, "c", function() {
            return i;
        }), n.d(t, "a", function() {
            return o;
        });
        var o = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceDialog: function() {
                return n.e("graceUI/components/graceDialog").then(n.bind(null, "8d15"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            },
            graceSelectImgAndUpload: function() {
                return Promise.all([ n.e("common/vendor"), n.e("graceUI/components/graceSelectImgAndUpload") ]).then(n.bind(null, "d7ef"));
            },
            graceSelectTags: function() {
                return n.e("graceUI/components/graceSelectTags").then(n.bind(null, "1e05"));
            },
            xgTabbarPer: function() {
                return n.e("components/xgTabbarPer/xgTabbarPer").then(n.bind(null, "534a"));
            }
        }, s = function() {
            var e = this, t = (e.$createElement, e._self._c, 1 == e.applStatus && 2 == e.cateType ? e.__map(e.applyCategorysChild, function(t, n) {
                return {
                    $orig: e.__get_orig(t),
                    l0: e.__map(t.child, function(t, n) {
                        return {
                            $orig: e.__get_orig(t),
                            g0: e.categorysVal.indexOf(t.value)
                        };
                    })
                };
            }) : null), n = 1 == e.applStatus && 2 != e.cateType ? e.__map(e.applyCategorys, function(t, n) {
                return {
                    $orig: e.__get_orig(t),
                    g1: e.categorysVal.indexOf(t.value)
                };
            }) : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    l1: t,
                    l2: n
                }
            });
        }, i = [];
    }
}, [ [ "1197", "common/runtime", "common/vendor", "xg_o2o/personnel/common/vendor" ] ] ]);